package com.rimi.project.commos;

/**
 *
 *  创建枚举对象，管理项目状态
 * @author chao
 * @date 2020/2/24
 */
public enum Status {

    /**
     *  请求正常执行
     */
    OK(200,"请求正常执行"),

    /**
     * 参数非法
     */
    PARAM_NOT_VALIDED(10001,"参数非法"),

    /**
     * 用户名和密码不匹配
     */
    LOGIN_NOT_MATCHED(10011,"用户名和密码不匹配");

    /**
     *  状态编码
     */
    private int code;

    /**
     *  状态的信息
     */
    private String msg;

    Status(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }}
